<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奔跑的北极熊</title>

    <style>
        .box {
            position: relative;
            width: 1300px;
            height: 800px;
            margin: 0 auto;
        }
        .bg1 {
            position: absolute;
            bottom: 0;
            height: 100%;
            width: 100%;
            background-size: contain;
            background-image: url(32.png);
            animation: move 20s linear infinite;
        }
        .boy {
            position: absolute;
            bottom: 0;
            transform: translate(300% ,-10%);
            width: 59px;
            height: 70px;
            background: url(4.png) ;
            animation: run 1s steps(8) infinite ;   
            z-index: 2;         
        }
        .bear{
            position: absolute;
            bottom: 0;
            transform: translate(40% ,-15%);
            width: 200px;
            height: 100px;
            background: url(9.png) ;
            animation: run1 1s steps(8) infinite ;  
        } 
        .ren{
            position: absolute;
            bottom: -107px;
            left: 220px;
            margin-left: 5px;
            width: 272px;
            height: 436px;
            background: url(73.png) ;
            animation: run2 2s steps(6) infinite ;   
            z-index: 30;   
            transform: scale(0.5);
        }
        @keyframes run {
            0% {
                background-position:0 0 ;
                scale: 1;
            }
            100% {
                background-position: -474px 0;
                margin-left: 0px;
                margin-top: 40px;
                scale:1;
            }
        }
        @keyframes run1 {
            0% {
                background-position:0 0 ;
                scale: 1;
            }
            100% {
                background-position: -1600px 0;
                margin-left: 10px;
                scale: 1;
            }
        }
        @keyframes run2 {
            0% {
                background-position:-60px 0 ;
                scale: 1;
            }
            50%{
                background-position: -1632px 0;
                margin-left: 150px;
                margin-bottom: 100px;
                scale: 1;
            }
            100% {
                background-position: -1632px 0;
                margin-left: 300px;
                margin-bottom: 0px;
                scale: 1;
            }
        }
        @keyframes move{
            from{
                background-position: 0 0;
            }
            to{
                background-position:-1000px 0;
            }
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="bg1"></div>
        <div class="boy"></div>
        <div class="bear"></div>
        <div class="ren"></div>
    </div>
</body>

</html>